$OpenBSD: patch-rxvt2_command_c,v 1.1 2012/12/12 20:39:25 naddy Exp $
--- rxvt2/command.c.orig	Wed Dec 12 21:33:54 2012
+++ rxvt2/command.c	Wed Dec 12 21:36:21 2012
@@ -632,7 +632,7 @@ get_pty(void)
     char           *ptydev;
 
 #ifdef PTYS_ARE_OPENPTY
-    char            tty_name[sizeof "/dev/pts/????\0"];
+    char            tty_name[16];
 
     if (openpty(&fd, &rxvt_ttyfd, tty_name, NULL, NULL) != -1) {
         ttydev = strdup(tty_name);
